import { ref } from 'vue'
//形参接受传递的num
export function userStarts (num,callback){
    const startNum = ref(num);
    const setStartNum = (num)=>{
        startNum.value = num;
        //此处会执行这个回调发送到父组件
        callback();
    }
    return [ startNum ,setStartNum ]
}

